Storage device having a serial communication port

ABSTRACT

A storage device includes a storage unit, a communication port configured to perform serial communication with an external device, and a controller configured to access the storage unit based on a command communicated from the external device through the communication port, and set the communication port to a power-saving mode before the communication port receives any signal for synchronization.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.16/352,245, filed on Mar. 13, 2019, which is a continuation of U.S.patent application Ser. No. 15/057,026, filed on Feb. 29, 2016, now U.S.Pat. No. 10,268,258, issued on Apr. 23, 2019, which is based upon andclaims the benefit of priority from Provisional Application No.62/192,268, filed on Jul. 14, 2015, the entire contents of each of whichare incorporated herein by reference.

FIELD

Embodiments described here relate generally to a storage device having aserial communication port.

BACKGROUND

A communication device of one type has a communication port thatperforms serial communication with an external device connected thereto,for example, a host computer. The communication device and the externaldevice communicate with each other by a serial communication method. Thecommunication device executes a command received from the externaldevice, transmits data to the external device, and receives data fromthe external device.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of a storage device according to a firstembodiment.

FIG. 2 is a flowchart illustrating processing of the storage deviceaccording to the first embodiment.

FIG. 3 is a timing chart illustrating an operation of the storage deviceaccording to the first embodiment.

FIG. 4 is a timing chart illustrating a first operation of acommunication device according to a comparative example.

FIG. 5 is a timing chart illustrating a second operation of thecommunication device according to the comparative example.

FIG. 6 is a timing chart illustrating an operation of a communicationdevice of another comparative example including a plurality ofcommunication ports.

FIG. 7 is a block diagram of a storage device according to a secondembodiment.

FIG. 8 is a flowchart illustrating processing of a storage deviceaccording to a third embodiment.

FIG. 9 is a timing chart illustrating an operation of the storage deviceaccording to the third embodiment.

DETAILED DESCRIPTION

In general, according to an embodiment, a storage device includes astorage unit, a communication port configured to perform serialcommunication with an external device, and a controller configured toaccess the storage unit based on a command communicated from theexternal device through the communication port, and set thecommunication port to a power-saving mode before the communication portreceives any signal for synchronization.

Embodiments will be described hereinafter with reference to theaccompanying drawings. In the following description, substantially thesame functions or structural elements are described with the samenumbers, and overlapping description will be provided only whennecessary.

First Embodiment

In a first embodiment, a storage device having a serial communicationfunction will be described. The storage device according to the presentembodiment sets a communication port in a power-saving state (mode)before executing communication for synchronization with an externaldevice in a state in which the communication port is connected to theexternal device for communication. Moreover, if the communication portis in a power-saving state and receives a specific signal from theexternal device, the storage device causes the communication port totransition to a power-normal state (non-power-saving state ornon-power-saving mode) and executes communication for synchronizationwith the external device. As a result, power consumption of the storagedevice can be reduced.

In the present embodiment, communication and processing forsynchronization with an external device will be referred to as aninitialization sequence.

FIG. 1 is a block diagram of the storage device according to the presentembodiment.

The storage device 1 includes communication ports CP0 to CP3, a controlunit (controller) 2, and nonvolatile memory 7. In the presentembodiment, it is assumed that the storage device 1 includes the fourcommunication ports CP0 to CP3. However, the number of communicationports in the storage device 1 may be one, and may be two or more.

To each of the communication ports CP0 to CP3, an external device can beconnected for communication with the external device. The externaldevice is, for example, a device such as an information processingdevice or a communication device connected (e.g., a host and anexpander) to the storage device 1 for communication. In FIG. 1, anexternal device CD0 is connected to the communication port CP0, and anexternal device CD1 is connected to the communication port CP1. However,the connection relationship between the storage device 1 and theexternal devices can be freely changed.

The communication port CP0 includes a transmission line Tx0 and areception line Rx0. The communication port CP1 includes a transmissionline Tx1 and a reception line Rx1. The communication port CP2 includes atransmission line Tx2 and a reception line Rx2. The communication portCP3 includes a transmission line Tx3 and a reception line Rx3.

The external devices CD0 and CD1 include communication ports CP00 andCP01, respectively. The communication port CP00 includes a transmissionline Tx00 and a reception line Rx00. The communication port CP01includes a transmission line Tx01 and a reception line Rx01.

The communication function of the storage device 1 and the communicationfunctions of the external devices CD0 and CD1 may be the same. In thepresent embodiment, the storage device 1 will be describedrepresentatively.

The storage device 1 executes serial communication with the externaldevices CD0 and CD1. In the present embodiment, Serial ATA (SATA) orSerial Attached SCSI (SAS) is used as a serial communication protocol.Alternatively, serial communication protocols other than SATA and SASmay also be used.

The communication ports CP0 to CP3 of the storage device 1 are terminalsof software or hardware for communicating data with communication portsof external devices, and correspond to interfaces. In SATA or SAS, acommunication port is referred to as a phy.

The reception line Rx0 and the transmission line Tx0 of thecommunication port CP0 can be connected to the transmission line Tx00for reception of data and the reception line Rx00 for transmission ofdata, respectively. A pair of the transmission line Tx0 and thereception line Rx0 corresponds to a communication channel. That is, thecommunication port CP0 is connected to the communication port CP00 ofthe external device CD0 through the communication channel, andcommunication is executed between the communication port CP0 of thestorage device 1 and the communication port CP00 of the external deviceCD0.

Because the communication ports CP1 to CP3 are the same as thecommunication port CP0, description thereof is omitted.

The control unit 2 includes a detector 21, a determiner 22, and asetting unit 23. In the present embodiment, the control unit 2 sets thecommunication ports CP0 to CP3 in a power-saving state before executingcommunication for synchronization with the external devices in a statein which the communication ports CP0 to CP3 are connected to theexternal devices for communication with the external devices. If thecommunication ports CP1 to CP3 are in a power-saving state and receivesspecific signals from the external devices, the control unit 2 causesthe communication ports CP1 to CP3 to transition from the power-savingstate to a power-normal state and executes communication forsynchronization with the external devices.

Thus, in the case of being asynchronous with the external devices, thecontrol unit 2 can cause the communication ports CP0 to CP3 totransition from the power-normal state to the power-saving state withoutexecuting an initialization sequence of communication channels. If theexternal devices CD0 and CD1 are connected and specific signals arereceived from the communication channels, the control unit 2 causes thecommunication ports CP0 and CP1 corresponding to the external devicesCD0 and CD1 to transition from the power-saving state to thepower-normal state, and executes the initialization sequence forsynchronization with the external devices.

In the present embodiment, a specific signal may be, for example, aninitialization signal and a return request signal. For example, if thecommunication protocol is SAS, an initialization signal may be referredto as COMINIT. If the communication protocol is SATA, an initializationsignal transmitted from a host device may be referred to as COMRESET,and an initialization signal transmitted from a storage device connectedto the host device may be referred to as COMINIT. COMRESET and COMINITin SATA are electrically the same signals. In SAS and SATA, a returnrequest signal may be referred to as COMWAKE. COMINIT, COMRESET, andCOMWAKE used in SAS and SATA, and COMSAS used in SAS are generallyreferred to as out-of-bounds (OOB) signals.

In the present embodiment, the power-saving state may be, for example, apartial phy power condition (partial power state) or a slumber phy powercondition (slumber power state). During the partial phy power conditionand the slumber phy power condition, portions of the phy are shut downto converse power. During the partial phy power condition, exit time(exit latency) can be up to 10 microseconds. During the slumber phypower condition, exit time (exit latency) can be as much as 10milliseconds.

In the present embodiment, an initialization sequence may be, forexample, a phy reset sequence.

In the present embodiment, the communication ports CP0 to CP3 may beincluded in the control unit 2.

The control unit 2 receives a write command, a write address, and writedata from an external device through one of the communication ports CP0to CP3. The control unit 2 converts the write address into a physicaladdress on the basis of the write command, and writes the write data ata position corresponding to the physical address in the nonvolatilememory 7.

The control unit 2 receives a read command and a read address from anexternal device through any of the communication ports CP0 to CP3. Thecontrol unit 2 converts the read address into a physical address on thebasis of the read command, reads read data from a position correspondingto the physical address in the nonvolatile memory 7, and transmits theread data to the external device from which the read command was issuedthrough one of the communication ports CP0 to CP3.

The detector 21 detects a state in which the storage device 1 and anexternal device are out of synchronization. For example, the detector 21detects an asynchronous state after the storage device 1 is powered onand before an initialization sequence is executed. In addition, forexample, the detector 21 detects the asynchronous state before thestorage device 1 synchronizes with an external device again after beingsynchronous with the external device and then being asynchronous withthe external device.

The determiner 22 determines whether each of the communication ports CP0to CP3 has received a communication signal for synchronization within apredetermined time since the detection of the asynchronous state.

For example, the communication signal for synchronization is an exampleof the above-described specific signal. Thus, as the communicationsignal for synchronization, an initialization signal or a return requestsignal may be used. The communication signal for synchronization may be,for example, a signal exchanged between a communication port and anexternal device in the first sequence for confirming the existence ofthe external device. The communication signal for synchronization maybe, for example, a signal exchanged between the communication port andthe external device in the second sequence for determining acommunicable rate and achieving synchronization per bit. That is, as thecommunication signal for synchronization, at least one signal includedin the above-described first and second sequences can be used.

The setting unit 23 sets a communication port which has received aninitialization signal within a predetermined time to the power-normalstate, and sets a communication port which has not received theinitialization signal within the predetermined time to the power-savingstate.

The determiner 22 determines whether or not an initialization signal ora return request signal has been received at a communication port in thepower-saving state.

If an initialization signal or a return request signal has been receivedat a communication port in the power-saving state (for example, if acommunication port in the power-saving state is connected to an externaldevice, whereby an initialization signal or a return request signal isreceived from the external device), the setting unit causes thecommunication port which has received the initialization signal or thereturn request signal to transition to the power-normal state, andexecutes a normal initialization sequence.

In the present embodiment, the determiner 22 may determine whether ornot an idle signal has been received within a predetermined time, andcause a communication port to transition from the power-normal state tothe power-saving state if the idle signal has not been received withinthe predetermined time.

Although in the present embodiment a communication port transitions fromthe power-saving state to the power-normal state on the basis of aspecific signal from an external device, the communication port maytransition from the power-saving state to the power-normal state, forexample, on the basis of a power-normal command from a processor of thestorage device 1, alternatively.

The nonvolatile memory 7 may be, for example, a memory such as a NANDflash memory, a NOR flash memory, a magnetoresistive random accessmemory (MRAM), a phase-change random access memory (PRAM), a resistiverandom access memory (ReRAM), or a ferroelectric random access memory(FeRAM). In addition, the nonvolatile memory 7 may be athree-dimensional flash memory.

The storage device 1 may include a solid-state drive (SSD), a memorycard, a hard disk drive (HDD), a hybrid memory device including an HDDand an SSD, an optical disk, etc.

Hereinafter, in each of the embodiments, an operation of causing acommunication port to transition to the power-saving state beforeexecuting communication (initialization sequence) for synchronizationwith an external device after the storage device 1 is powered on will bedescribed representatively. However, the same processing can be appliedto an operation of causing a communication port to transition to thepower-saving state before synchronizing with an external device againafter being synchronous with the external device and then beingasynchronous with the external device.

FIG. 2 is a flowchart, as an example, illustrating the processing of thestorage device 1 according to the present embodiment. FIG. 2 illustratessteps through which the storage device 1 is powered on and then acommunication port enters the power-normal state.

In step S201, the detector 21 detects a state that the storage device 1is powered on.

In step S202, the determiner 22 determines whether or not apredetermined time has elapsed for each of the communication ports CP0to CP3 since the storage device 1 was powered on. Each of thecommunication ports CP0 to CP3 is in a wait state until thepredetermined time has elapsed since the storage device 1 was poweredon.

When the predetermined time has elapsed since the storage device 1 waspowered on, the determiner 22 determines whether or not each of thecommunication ports CP0 to CP3 has received an initialization signal ofa communication channel within the predetermined time in step S203.

In step S204, the setting unit 23 sets a communication port which hasreceived an initialization signal within the predetermined time to thepower-normal state. Then, the processing ends.

In step S205, the setting unit 23 sets a communication port which hasnot received the initialization signal within the predetermined time tothe power-saving state.

After the communication port enters the power-saving state, thedeterminer 22 determines whether or not an initialization signal hasbeen received at the communication port in the power-saving state instep S206.

If the initialization signal has been received at the communication portin the power-saving state, the processing proceeds to step S204.

If the initialization signal has not been received at the communicationport in the power-saving state, the processing proceeds to step S206,and enters a wait state.

FIG. 3 is a timing chart illustrating the operation of the storagedevice 1 according to the present embodiment. FIG. 3 illustrates thecommunication state of signals between the transmission line Tx2 and thereception line Rx2 of the communication port CP2.

At time T1, the storage device 1 is powered on.

When the predetermined time has elapsed since the time T1 withoutreception of the initialization signal, the control unit 2 of thestorage device 1 sets the communication port CP2 to the power-savingstate at time T2.

After that, it is assumed that at time T3, an external device is newlyconnected to the communication port CP2, and the external deviceconnected to the communication port CP2 is powered on.

Then, the communication port CP2 receives an initialization signal S1from the external device connected to the communication port CP2, andtransmits an initialization signal S2 to the external device connectedto the communication port CP2 as a response to the initialization signalS1.

In the above-described present embodiment, if an initialization signalof a communication channel has not been received at a communication portwithin a predetermined time since the power was turned on, the controlunit 2 may determine that an external device is not connected to thecommunication port, or that an external device connected to thecommunication port is not powered on, and set the communication port ina power-saving state. In addition, in the present embodiment, if aninitialization signal has been received at a communication port in thepower-saving state, the control unit 2 may cause the communication portto transition to a power-normal state.

According to the present embodiment, power consumption of the storagedevice 1 can be reduced.

Hereinafter, a communication device of a comparative example and thestorage device 1 according to the present embodiment will be described.

FIG. 4 is a timing chart illustrating the first operation of thecommunication device according to the comparative example.

To set communication ports in a power-saving state in the communicationdevice of the comparative example, an initialization sequence of acommunication channel is first executed, and the synchronization of thecommunication channel (a transmission line Tx and a reception line Rx)between the communication device of the comparative example and anexternal device to the communication device is acquired. Thecommunication ports thereby enter an idle state. Next, a power-savingrequest 3 is transmitted from one device to the other device of thecommunication device and the external device, and a response (power saveacknowledgement) 4 to permit power saving is transmitted from the otherdevice to the one device. Then, the communication port of thecommunication device and the communication port of the external deviceenter the power-saving state, and power consumption of a transmissioncircuit and a reception circuit is reduced. The return from thepower-saving state is achieved by transmitting a return request signalS3 from one device which wants to return to the other device, andtransmitting a return request signal S4 as a response to the returnrequest signal S3.

FIG. 5 is a timing chart illustrating the second operation of thecommunication device according to the comparative example.

At time T4, the communication device of the comparative example ispowered on. After the power is turned on, the communication device ofthe comparative example periodically transmits an initialization signalS5 of the communication channel from the communication port to start aninitialization sequence of the communication channel. Here, at a timeT5, the communication device of the comparative example and the externaldevice are connected, and the external device is powered on. Then, theexternal device transmits a response signal S6 to the initializationsignal S5 to the communication device of the comparative example, andthe communication device of the comparative example receives theresponse signal S6 from the external device. The communication port ofthe communication device of the comparative example and thecommunication port of the external device thereby acquiresynchronization of the communication channel by exchangingsynchronization data (for example, speed negotiation dword), and enteran idle state in which they can communicate with each other whensynchronization is acquired.

FIG. 6 is a timing chart illustrating the operation of the communicationdevice of another comparative example including a plurality ofcommunication ports.

The communication device of the comparative example includingcommunication ports may execute commands for the communication ports inparallel.

Although the communication device of the comparative example includesfour communication ports in FIG. 6, the number of communication ports inthe communication device may be any number greater than or equal to two.

The first communication port of the communication device of thecomparative example includes a transmission line Tx100 and a receptionline Rx100. The second communication port includes a transmission lineTx101 and a reception line Rx101. The third communication port includesa transmission line Tx102 and a reception line Rx102. The fourthcommunication port includes a transmission line Tx103 and a receptionline Rx103.

In FIG. 6, the communication device of the comparative example ispowered on at time T6. At time T7, an external device connected to thesecond communication port is powered on. At time T8, an external deviceconnected to the first communication port is powered on.

Sometimes, it may be hard to estimate to which communication port theexternal device will be connected. To determine which communication portis connected to the external device, after the communication device ispowered on, the communication device periodically transmitsinitialization signals S5 of communication channels from all thecommunication ports.

In addition, the communication device of the comparative example cannotset the communication ports to the power-saving state unless thecommunication device of the comparative example initializes thecommunication channels and synchronizes with an external device. Thus, acommunication port to which no external device is connected cannot enterthe power-saving state, and power consumption of the communicationdevice may not be properly reduced.

On the other hand, in the storage device 1 according to the presentembodiment, a communication port can be set in the power-saving stateeven in an asynchronous state with an external device before theinitialization sequence of a communication channel is executed. It istherefore unnecessary to periodically transmit an initialization signalfrom communication ports, and even a communication port to which noexternal device is connected can be set in the power-saving state.

As a result, according to the present embodiment, power consumption ofthe storage device 1 can be reduced.

In the above-described present embodiment, if an initialization signalof a communication channel has not been received at a communication portwithin a predetermined time since the storage device 1 was powered on,the control unit 2 sets the communication port to a power-saving state.Alternatively, the control unit 2 may set the communication port in thepower-saving state when the storage device 1 is powered on, withoutwaiting for the predetermined time after the power is turned on.

In the present embodiment, the control unit 2 can control each of thecommunication ports CP0 to CP3 independently. For example, the firstcommunication port may be synchronous with the corresponding firstexternal device and be in a power-normal state, and the secondcommunication port may be asynchronous with the corresponding secondexternal device and be in the power-saving state. Even in this case, thesecond communication port transitions from the power-saving state to thepower-normal state on the basis of a specific signal, and synchronizeswith the second external device.

Second Embodiment

In a second embodiment, a control unit is separated into circuit blocks,and a storage device which controls power supply for each of the circuitblocks will be described.

FIG. 7 is a block diagram of a storage device according to the presentembodiment.

In FIG. 7, a controller 5 of the storage device 1 is generated as, forexample, large-scale integration (LSI). The controller 5 includescommunication ports CP0 to CP3, a control unit 2, a main power supply 6,and power supply circuits PC0 to PC4. Further, in FIG. 7, the controlunit 2 includes the communication ports CP0 to CP3 as an example.Alternatively, as illustrated in FIG. 1, the control unit 2 and thecommunication ports CP0 to CP3 may also be separated in structure.

The main power supply 6 supplies power to each of the power supplycircuits PC0 to PC4.

In the present embodiment, the controller 5 is separated into circuitblocks CB0 to CB4 depending on the function.

The power supply circuits PC0 to PC4 are provided to the circuit blocksCB0 to CB4, respectively. The power supply circuits PC0 to PC4 stoppower supply to the corresponding circuit blocks CB0 to CB4, if thecorresponding circuit blocks CB0 to CB4 are not used. In addition, thepower supply circuits PC0 to PC4 resume power supply to thecorresponding circuit blocks CB0 to CB4, if the corresponding circuitblocks CB0 to CB4 are used.

In the present embodiment, for example, the communication ports CP0 toCP3 are included in the circuit blocks CB0 to CB3, respectively. If anyof the communication ports CP0 to CP3 are in a power-saving state, thepower supply circuits PC0 to PC3 shut off power supply to the circuitblocks CB0 to CB3 including the communication ports CP0 to CP3 which arein the power-saving state.

Power consumption of the storage device 1 can be thereby reduced moreefficiently.

Third Embodiment

In a third embodiment, a storage device causes a communication port totransition to a power-normal state after a predetermined time haselapsed since the communication port entered a power-saving state.

FIG. 8 is a flowchart illustrating the processing of the storage device1 according to the present embodiment. FIG. 8 differs from FIG. 2 in theprocessing after step S205.

After a communication port enters the power-saving state, a determiner22 determines whether or not a predetermined power-saving time haselapsed in step S801. The communication port is in a wait state untilthe power-saving time has elapsed.

When the power-saving time has elapsed since the communication portentered the power-saving state, a setting unit 23 causes thecommunication port to return from the power-saving state to thepower-normal state in step S802, and transmits an initialization signalin step S803. Then, the processing returns to step S202.

FIG. 9 is a timing chart illustrating the operation of the storagedevice 1 according to the present embodiment. FIG. 9 illustrates thecommunication state of signals between a transmission line Tx0 and areception line Rx0 of a communication port CP0 of the storage device 1.Because the communication ports CP1 to CP3 are the same as thecommunication port CP0, description thereof is omitted.

At time T9, the storage device 1 is powered on. At time T10, i.e., whena predetermined time has elapsed, the communication port CP0 enters thepower-saving state.

At time T11, i.e., when the power-saving time has elapsed, thecommunication port CP0 returns from the power-saving state and transmitsan initialization signal S7.

When a predetermined time has elapsed since the initialization signal S7was transmitted, the communication port enters the power-saving state attime T12.

At time T13, i.e., when the power-saving time has elapsed, thecommunication port CP0 returns from the power-saving state, andtransmits an initialization signal S7.

In the present embodiment, the communication ports CP0 to CP3 of thestorage device 1 return from the power-saving state once and transmitinitialization signals when the power-saving time has elapsed since thecommunication ports CP0 to CP3 entered the power-saving state, and enterthe power-saving state again when a predetermined time has elapsed.

According to the present embodiment, the storage device 1 and anexternal device enter a state of waiting for an initialization signal,whereby the occurrence of a deadlock can be prevented. Here, deadlock isa situation in which both the storage device 1 and the external deviceare in the power-saving state, do not transmit the initializationsignal, and wait for the initialization signal being transmitted fromthe other device.

Various operations of the storage device 1 according to one or more ofthe above-described embodiments may be implemented by executing aprogram on a computer. For example, the computer loads a program storedin a non-transitory or nonvolatile storage medium, and executes theprogram.

The communication function, and the transition function between thepower-saving state and the power-normal state of the storage device 1according to one or more of the embodiments may be provided in acommunication device that is communicable with the external device.

While certain embodiments have been described, these embodiments havebeen presented by way of example only, and are not intended to limit thescope of the inventions. Indeed, the novel methods and systems describedherein may be embodied in a variety of other forms; furthermore, variousomissions, substitutions and changes in the form of the methods andsystems described herein may be made without departing from the spiritof the inventions. The accompanying claims and their equivalents areintended to cover such forms or modifications as would fall within thescope and spirit of the inventions.

What is claimed is:
 1. A method of controlling an electronic device, theelectronic device including a communication port configured to performserial communication with an external device, the method comprising:setting the communication port to a power-saving mode before thecommunication port receives a signal for synchronization from theexternal device after power-on of the electronic device.
 2. The methodaccording to claim 1, wherein the communication port is set to thepower-saving mode when the communication port receives no signal forsynchronization for a first period of time.
 3. The method according toclaim 2, wherein the first period of time starts when the electronicdevice is powered on and the communication port is not synchronized withany external device.
 4. The method according to claim 1, furthercomprising: recovering the communication port from the power-saving modeand transmitting a signal for synchronization through the communicationport, in a case where the communication port is in the power-saving modefor more than a second period of time.
 5. The method according to claim4, further comprising: setting the communication port to thepower-saving mode again, in a case where the communication port receivesno signal for synchronization for more than a third period of time aftertransmitting the signal for synchronization.
 6. The method according toclaim 1, wherein the serial communication conforms to Serial AttachedSCSI (SAS) protocol, and the power-saving mode includes one of a partialpower mode and a slumber power mode of the SAS protocol.
 7. The methodaccording to claim 6, wherein the signal for synchronization is COMINITof the SAS protocol.
 8. The method according to claim 1, wherein theelectronic device is a storage device.
 9. A method of controlling anelectronic device, the electronic device including a communication portconfigured to perform serial communication with an external device, themethod comprising: setting the communication port to a power-saving modein a case where the communication port is in an asynchronous state withthe external device and the communication port receives no signal forsynchronization from the external device for more than a first period oftime.
 10. The method according to claim 9, further comprising:recovering the communication port from the power-saving mode andtransmitting a signal for synchronization through the communicationport, in a case where the communication port is in the power-saving modefor more than a second period of time.
 11. The method according to claim10, further comprising: setting the communication port to thepower-saving mode again, in a case where the communication port receivesno signal for synchronization for more than a third period of time aftertransmitting the signal for synchronization.
 12. The method according toclaim 9, wherein the serial communication conforms to Serial AttachedSCSI (SAS) protocol, and the power-saving mode includes one of a partialpower mode and a slumber power mode of the SAS protocol.
 13. The methodaccording to claim 12, wherein the signal for synchronization is COMINITof the SAS protocol.
 14. The method according to claim 9, wherein theelectronic device is a storage device.
 15. A method of controlling anelectronic device, the electronic device including a communication portconfigured to perform serial communication with an external device, themethod comprising: setting the communication port to a power-savingmode, in a case where no external device is connected with thecommunication port for more than a first period of time; and recoveringthe communication port from the power-saving mode and transmitting asignal for synchronization through the communication port, in a casewhere the communication port is in the power-saving mode for more than asecond period of time.
 16. The method according to claim 15, furthercomprising: setting the communication port to the power-saving modeagain, in a case where the communication port receives no signal forsynchronization for more than a third period of time after transmittingthe signal for synchronization.
 17. The method according to claim 15,wherein the serial communication conforms to Serial Attached SCSI (SAS)protocol, and the power-saving mode includes one of a partial power modeand a slumber power mode of the SAS protocol.
 18. The method accordingto claim 17, wherein the signal for synchronization is COMINIT of theSAS protocol.
 19. The method according to claim 15, wherein theelectronic device is a storage device.
 20. The method according to claim15, wherein the communication port includes a phy.